package Shape;

public class Test {
    public static void drawmap(Shape shape){
        shape.draw();//最简单 的多态
    }
    public static void main(String[] args) {
        drawmap(new Rest());

        drawmap(new Cycle());
    }
}
